﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
    class Relout
    {
        private int length;

        public void Ru(int[] arr, ref int sum, ref int max, ref int min, ref double avg)
            {

                for (int i = 0; i < length; i++)
                {
                    sum += arr[i];
                    if (max < arr[i])
                    {
                        max = arr[i];
                    }
                    if (min > arr[i])
                    {
                        min = arr[i];
                    }
                }
                avg = sum * 1.0 / arr.Length;
            }
        }
    }

